var columnModel = [
<#list table.baseColumns as column>
    {id:'${column.javaProperty}', title:'${column.remarks}', type:'string', columnClass:'text-center'},
</#list>
    {title:'操作',columnClass:'text-center',
        resolution:function(value, record){
            var content = [];
            content.push("<a href=\"${r'${CONTEXT_PATH}'}/order/edit/"+record.uuid+"\" class=\"btn btn-primary btn-xs\">");
            content.push("<i class=\"fa fa-pencil update\"></i></a>");
            content.push("<a href=\"javascript:;\" onclick=\"deletebyid(this,'"+record.uuid+"')\" class=\"btn btn-danger btn-xs\">");
            content.push("<i class=\"fa fa-minus-circle\"></i></a>");
            return content.join(" ");
        }
    }
];
var dtgridOpt = {
    lang: 'zh-cn',
    check:true,
    ajaxLoad : true,
    loadURL : '${r'${CONTEXT_PATH}'}/${table.className}/load',
    exportFileName : '${table.remarks}',
    columns : columnModel,
    gridContainer : 'dt_grid',
    toolbarContainer : 'dt_table_toolbar',
    tools : 'print',
    pageSize : 10,
    pageSizeLimit : [10, 20, 50]
};
dtgrid = $.fn.DtGrid.init(dtgridOpt);
$(function(){
    dtgrid.load();
});
